package compiler.tac;

public class ExptNameStack {

	int count = 0;
	NameStack exptVersion = new NameStack();
	NameStack oplVersion = new NameStack();
	NameStack oprVersion = new NameStack();
	NameStack curOpl = new NameStack();
	NameStack curOpr = new NameStack();
	
	public void pop()
	{
		exptVersion.pop();
		oplVersion.pop();
		oprVersion.pop();
	}
	
	public void push(int a, int b, int c)
	{
		exptVersion.push(a);
		oplVersion.push(b);
		oprVersion.push(c);
	}
	
	public boolean match(int vl, int vr)
	{
		if(oplVersion.top()==vl && oprVersion.top()==vr)
			return true;
		return false;
	}
}
